package com.ux.iot.jetlinks.service.product.imp;

import cn.hutool.core.util.ObjectUtil;
import com.ux.iot.jetlinks.pro.ProductConfig;
import com.ux.iot.jetlinks.service.product.ProductService;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;

import java.util.ArrayList;
import java.util.List;

/**
 * @author caixiaodao
 * @version 1.0
 * 功能描述
 * 配置文件获取 产品ID
 * @date 2021/11/16 14:47
 */
@Slf4j
@AllArgsConstructor
public class ConfigProductService implements ProductService {
    List<ProductConfig> configs;
    @Override
    public List<ProductConfig> getProductList() {
        if(ObjectUtil.isNotEmpty(configs)){
            return  configs;
        }
        return new ArrayList<>();
    }
}
